<template>
  <div>
    apple
    <input type="text"/>
    <span>{{name}}</span>
    <el-button @click="fuc">输出</el-button>
  </div>
</template>

<script>
export default {
  props:{
    name:{
      type: String,
      default:"nullapple"
    }
  },
  methods:{
    fuc(){
      this.$emit("fun","子组件apple");
    },
    logfather(){
      console.log("55555")
    }
  }
  
}
</script>

<style>

</style>